{extend name="public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
    <div class="pull-right">
    			<button class="btn btn-danger ajax-post confirm" url="{:url('logdel')}" target-form="ids">删 除</button>
    		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive">
      <table class="table table-striped table-hover">
        <thead>
          <tr>
            <th width="30"><input class="checkbox check-all" type="checkbox"></th>
            <th width="60">ID</th>
            <th>充值用户ID</th>
            <th>微信昵称</th>
            <th>充值金额</th>
            <th>充值时间</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          {volist name="list" id="item"}
          <tr>
            <td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item['id']}"></td>
            <td>{$item['id']}</td>
            <td>{$item['user_id']}</td>
            <td>{$item['user_id']|get_table_field="id","nickname","WxUser"}</td>
            <td>{$item['sum']}</td>
            <td>{$item['create_time']}</td>
            <td>
              <a href="{:url('logdel',array('id'=>$item['id']))}" class="confirm ajax-get">删除</a>
            </td>
          </tr>
          {/volist}
        </tbody>
      </table>
      {$list->render()}
		</div>
	</div>
</div>
{/block}
